require 'spider'
class SpiderController < ApplicationController
    def self.test
        Spider.start_at('http://www.sse.com.cn/disclosure/credibility/supervision/inquiries/') do |s|
            s.on :success do |a_url, resp, prior_url|
              puts "#{a_url}: #{resp.code}"
              puts resp.body
              puts
            end
        end
    end 
end
